const { downloadFromPexels } = require("./pexelsCommon");

/**
 * 从Pexels下载图片
 * @param {string} query - 搜索关键词
 * @param {string} outputPath - 输出文件路径
 * @returns {boolean} 是否成功下载
 */
async function downloadImageFromPexels(query, outputPath) {
  return await downloadFromPexels(query, outputPath, "image");
}

module.exports = {
  downloadImageFromPexels,
};
